using System;
using System.Data;
using System.Collections.Generic;
namespace eTMS.DAO{
	/********************************BEGIN LopSinhVienDAO****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:10/08/2010 58:03:30</para>
	/// <para>Class Name: LopSinhVienDAO</para>
	/// <para>Description: Class access to table LopSinhVien in database. Class for coder code here</para>
	///</summary>

	
	public partial class LopSinhVienDAO{
        public bool DeleteByListLopSinhVien_ID(List<int>lsLopSinhVien_ID)
        {
            IDbCommand cmd = this.CreateDeleteAllCommand();
            cmd.CommandText += " WHERE LopSinhVien_ID IN(" + string.Join(",", lsLopSinhVien_ID.ConvertAll<string>(Convert.ToString).ToArray()) + ")";
            return this.ExcuteNoneQuery(cmd);
        }
        public bool DeleteByLop_IDSinhVien_ID(int Lop_ID,int SinhVien_ID)
        {
            IDbCommand cmd = this.CreateDeleteAllCommand();
            cmd.CommandText += " WHERE Lop_ID=" + Lop_ID.ToString() + " AND SinhVien_ID=" + SinhVien_ID.ToString();
            return this.ExcuteNoneQuery(cmd);
        }
       
	}
	/*****************************************************************************************************/
	/**********************************END LopSinhVienDAO*****************************************/
	/*****************************************************************************************************/
}

